@import "../vars.css";

.history-header {
    padding: 77px 100px;
    background-image: url("/wp-content/themes/neve/assets/img/history/header_bg_xl.jpg");
    background-size: cover;
    background-position: left bottom;
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    justify-content: center;
}

.history-header-title {
    font-family: var(--desktop-h1-font, Montserrat);
    font-size: var(--desktop-h1-size, 64px);
    font-weight: var(--desktop-h1-weight, 800);
    color: var(--white, #fff);
    max-width: 700px;
}

.history-header-quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
}

.history-header-quote-text {
    font-family: Montserrat;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    font-style: italic;
}

.history-header-quote-author {
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-align: right;
}

.history-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10vw;
    row-gap: 64px;
    position: relative;
}

.history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(0);
    width: 3px;
    background: var(--gray-100, #e4e7ec);
    pointer-events: none;
}

.history-timeline-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-timeline-card:nth-of-type(2n+1):not(:first-of-type) {
    margin-top: 64px;
}

.history-timeline-card-date {
    font-family: Montserrat;
    font-size: 76px;
    font-weight: 800;
    color: var(--gray-100, #e4e7ec);
    transition: color 0.3s;
}

.history-timeline-card.active > .history-timeline-card-date {
    color: var(--primary-brand-1, #d24256);
    transition: color 0.3s;
}

.history-timeline-card-fio {
    font-family: Montserrat;
    font-size: 32px;
    font-weight: 400;
    color: var(--text, #333);
}

.history-timeline-card-text {
    font-family: var(--desktop-body-font, Montserrat);
    font-size: var(--desktop-body-size, 15px);
    font-weight: var(--desktop-body-weight, 400);
    color: var(--text, #333);
}

.history-timeline-card-text p:last-of-type {
    margin-bottom: 0;
}

.history-timeline-card > img {
    border-radius: 16px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.history-timeline-card.active > img {
    filter: none;
    transition: filter 0.3s;
}

@media screen and (max-width: 1280px) {

    .history-header {
        padding: 60px 70px 360px 70px;
        background-image: url("/wp-content/themes/neve/assets/img/history/header_bg_l.jpg");
        background-color: #36c;
        background-position: right bottom;
        /*background-size: auto;*/
        /*background-repeat: no-repeat;*/
    }

    .history-header-title {
        max-width: none;
    }

    .history-header-quote {
        max-width: none;
    }


}

@media screen and (max-width: 1024px) {
    .history-timeline {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 32px;
    }

    .history-timeline::before {
        display: none;
    }

    .history-timeline-card:nth-of-type(2n+1):not(:first-of-type) {
        margin-top: 0;
    }

    .history-timeline-card:nth-of-type(1) {
        order: 1;
    }

    .history-timeline-card:nth-of-type(2) {
        order: 2;
        flex-direction: column-reverse;
    }

    .history-timeline-card:nth-of-type(3) {
        order: 4;
    }

    .history-timeline-card:nth-of-type(4) {
        order: 3;
    }

    .history-timeline-card:nth-of-type(5) {
        order: 6;
    }

    .history-timeline-card:nth-of-type(6) {
        order: 5;
    }

    .history-timeline-card:nth-of-type(7) {
        order: 8;
    }

    .history-timeline-card:nth-of-type(8) {
        order: 7;
    }

    .history-timeline-card:nth-of-type(9) {
        order: 10;
    }

    .history-timeline-card:nth-of-type(10) {
        order: 9;
    }

    .history-timeline-card:nth-of-type(11) {
        order: 12;
    }

    .history-timeline-card:nth-of-type(12) {
        order: 11;
    }

}

@media screen and (max-width: 768px) {

    .history-header {
        padding: 30px 30px 340px 30px;
        background-image: url("/wp-content/themes/neve/assets/img/history/header_bg_m.jpg");
        gap: 32px;
    }

    .history-header-title {
        font-size: 40px;
    }

    .history-header-quote-text {
        font-size: 20px;
    }

    .history-header-quote-author {
        font-size: 18px;
    }

    .history-timeline-card-date {
        font-size: 40px;
    }

    .history-timeline-card-fio {
        font-size: 20px;
    }

}

@media screen and (max-width: 380px) {

    .history-header {
        padding: 32px 24px 270px 24px;
        background-image: url("/wp-content/themes/neve/assets/img/history/header_bg_s.jpg");
        gap: 24px;
    }

    .history-header-title {
        font-size: 28px;
    }

    .history-header-quote-text {
        font-size: 18px;
    }

    .history-header-quote-author {
        font-size: 16px;
    }

}


